package com.xiaomiMall.mange.mapper;

import com.xiaomiMall.mange.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XiaoMiHeaderMapper {
    public List<XiaoMiTop> selectXiaoMiTop();

    public List<XiaoMiNav> selectXiaoMiNav();

    public List<XiaoMiNavPic> selectXiaoMiNavPic();

    public List<Cart> selectProId(@Param("prodId") Long prodId, @Param("prodVersion") String prodVersion);

    public int addCart(@Param("userId") Long userId ,@Param("detailUid") Long detailUid);

    public List<ShoppingCart> selectAll(Long userId);

    public boolean updateNumber(@Param("amount") Long amount,@Param("id") Long id);

    public int deleteCart(List<Long> id);

}
